package com.atguigu.study.controller;

import com.atguigu.study.pojo.SystemUser;
import com.atguigu.study.service.SystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * ClassName:SystemUserController
 * Package: com.atguigu.study.controller
 * Description:
 *
 * @Author Makabaka
 * @Create 2024/9/13 18:24
 * @Version 1.0
 */
@RestController
public class SystemUserController {
    @Autowired
    SystemUserService systemUserService;

//    springboot整合redis后从redis中获取更快，不单单从数据库中获取  属于业务层操作  在service层写
    @GetMapping("/findAll")
    public List<SystemUser> findAllUser(){
        return systemUserService.findAllUser();
    }
}
